<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost/" />
<title>Edit Gallery - Picture Order - Delete Pictures</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Edit Gallery - Picture Order - Delete Pictures</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/cms_pro/albums/view_all?post_type=gallery?type=all</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Edit</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>name=galleryname</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>name=galleryname</td>
	<td>Moja_galerija2</td>
</tr>
<tr>
	<td>select</td>
	<td>id=linkto</td>
	<td>label=Agencija</td>
</tr>
<tr>
	<td>click</td>
	<td>id=edit_gallery</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Edit</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=(//input[@name='picture-order[]'])[8]</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>xpath=(//input[@name='picture-order[]'])[8]</td>
	<td>1</td>
</tr>
<tr>
	<td>type</td>
	<td>xpath=(//input[@name='picture-order[]'])[7]</td>
	<td>2</td>
</tr>
<tr>
	<td>type</td>
	<td>xpath=(//input[@name='picture-order[]'])[6]</td>
	<td>3</td>
</tr>
<tr>
	<td>type</td>
	<td>xpath=(//input[@name='picture-order[]'])[5]</td>
	<td>4</td>
</tr>
<tr>
	<td>type</td>
	<td>xpath=(//input[@name='picture-order[]'])[4]</td>
	<td>5</td>
</tr>
<tr>
	<td>type</td>
	<td>xpath=(//input[@name='picture-order[]'])[3]</td>
	<td>6</td>
</tr>
<tr>
	<td>type</td>
	<td>xpath=(//input[@name='picture-order[]'])[2]</td>
	<td>7</td>
</tr>
<tr>
	<td>type</td>
	<td>name=picture-order[]</td>
	<td>8</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=button.btn.btn-primary</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Delete</td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Delete &quot;Tulips.jpg&quot; ?</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Delete</td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Delete &quot;Penguins.jpg&quot; ?</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>link=Delete</td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Delete &quot;Lighthouse.jpg&quot; ?</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>xpath=(//a[contains(text(),'Delete')])[3]</td>
	<td></td>
</tr>
<tr>
	<td>assertConfirmation</td>
	<td>Delete &quot;Hydrangeas.jpg&quot; ?</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=edit_gallery</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
